# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Jameson Pugh <imntreal@gmail.com>

pkgname=kasync
pkgver=0.3.0
pkgrel=3
pkgdesc='A C++ library for controlling asynchronous tasks'
arch=(loong64 x86_64)
url='https://community.kde.org/KDE_PIM'
license=(GPL)
depends=(qt5-base)
makedepends=(extra-cmake-modules)
#source=("https://download.kde.org/unstable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz")
source=(https://invent.kde.org/libraries/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
sha256sums=('4ab0fe3a770c5237296486a638d9b3ad5431fb1ec9acf67de3b0215d62514862')

build() { 
  cmake -B build -S $pkgname-v$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
